I would like to increase the rate at which my app receives and processes data from a peripheral. I seem to remember reading that the iPhone's baud rate can be increased. How is this done?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Is there a limit to the speed at which information can be printed in a label on the iPhone screen? I seem to recall reading that this rate is restricted until a developer joins the Apple Developers' Group. I am writing in Swift, using Xcode.
I have the following code in my app, which reads a single byte send from a peripheral. I now want to read 20 bytes sent together from the peripheral. How do I change the swift code?
func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) { var u16: UInt8
u16 = UInt8((characteristic.value! as NSData).bytes.bindMemory(to: Int.self, capacity: characteristic.value!.count).pointee)// get input ascii value //
let chart = Character(UnicodeScalar(u16))// make into a character //